package com.fresh.liangyi.service;

import com.fresh.liangyi.dao.GoodsMapper;
import com.fresh.liangyi.model.domain.Goods;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface GoodsService {

    public int addGoods(Goods goods) ;

    public Goods selectById(Integer id);

    public List<Goods> selectGoodsAll();

    public List<Goods> selectByKeyword(String keyword) ;


    public List<Goods> selectByCategoryId(Integer id) ;

    public int deleteGoods(Integer id) ;

    public Goods updateGoods(Goods goods);
    public List<Goods> selectCartByUserId(Integer id);
    public Integer deleteCart(Integer userId,Integer goodsId);
    public Integer addCartGoods(Integer userId,Integer goodsId);
}
